import BlankView from '@/layouts/BlankView';
import PageView from '@/layouts/PageView';

// 官网项目页面
export default {
  path: 'web',
  name: '官网项目',
  meta: {
    icon: 'like',
  },
  component: BlankView,
  children: [
    // {
    //   path: 'projectList',
    //   name: '项目列表',
    //   meta: {
    //     icon: 'apartment',
    //     authority: {
    //       role: 'admin',
    //     },
    //   },
    //   component: () => import('@/pages/web/projectList/projectList'),
    // },
    // ? 轮播图页面
    {
      path: 'carousel',
      name: '轮播图管理',
      meta: {
        icon: 'picture',
      },
      component: PageView,
      children: [
        {
          path: 'carousels',
          name: '轮播图',
          meta: {
            icon: 'project',
            authority: {
              role: 'user',
            },
          },
          component: () => import('@/pages/web/carousel/carousels/carousels'),
        },
        {
          path: 'carouselGroup',
          name: '轮播图分组',
          meta: {
            icon: 'menu-unfold',
            authority: {
              role: 'user',
            },
          },
          component: () =>
            import('@/pages/web/carousel/carouselGroup/carouselGroup'),
        },
        // {
        //   path: 'adminCarousel',
        //   name: '轮播图及分组',
        //   meta: {
        //     icon: 'diff',
        //     authority: {
        //       role: 'admin',
        //     },
        //   },
        //   component: () =>
        //     import('@/pages/carousel/adminCarousel/adminCarousel'),
        // },
      ],
    },
    // ? 人物管理
    {
      path: 'characters',
      name: '人物管理',
      meta: {
        icon: 'robot',
      },
      component: PageView,
      children: [
        {
          path: 'list',
          name: '人物列表',
          meta: {
            icon: 'snippets',
            authority: {
              role: 'user',
            },
          },
          component: () => import('@/pages/web/character/list/characterList'),
        },
        // {
        //   path: 'admin',
        //   name: '人物',
        //   meta: {
        //     icon: 'unordered-list',
        //     authority: {
        //       role: "admin"
        //     },
        //   },
        //   component: () => import('@/pages/web/character/adminCharacter/adminCharacter')
        // },
      ],
    },
    // ? 案例管理
    {
      name: '案例管理',
      path: 'case',
      meta: {
        title: 'case',
        icon: 'file-image',
      },
      component: BlankView,
      children: [
        // {
        //   path: 'admin',
        //   name: '案例',
        //   meta: {
        //     icon: 'unordered-list',
        //     authority: {
        //       role: 'admin',
        //     },
        //   },
        //   component: () => import('@/pages/web/case/adminCase/adminCase'),
        // },
        {
          path: 'list',
          name: '案例列表',
          meta: {
            icon: 'diff',
            authority: {
              role: 'user',
            },
          },
          component: () => import('@/pages/web/case/list/caseList'),
        },
        {
          path: 'casedetail/:id',
          name: '案例详情',
          component: () => import('@/pages/web/case/detail/caseDetail'),
          meta: {
            title: '查看案例',
            icon: 'align-left',
            invisible: true,
          },
        },
      ],
    },
    // ? 招聘信息管理
    {
      path: 'recruit',
      name: '招聘信息管理',
      meta: {
        icon: 'solution',
      },
      component: BlankView,
      children: [
        // {
        //   path: 'admin',
        //   name: '信息管理',
        //   meta: {
        //     icon: 'diff',
        //     authority: {
        //       role: 'admin'
        //     },
        //   },
        //   component: () => import('@/pages/web/recruit/adminRecruit/adminRecruit'),
        // },
        {
          path: 'list',
          name: '招聘信息列表',
          meta: {
            icon: 'diff',
            authority: {
              role: 'user',
            },
          },
          component: () => import('@/pages/web/recruit/list/recruitList'),
        },
        {
          path: 'recruitdetail/:id',
          name: '招聘详情',
          component: () => import('@/pages/web/recruit/detail/recruitDetail'),
          meta: {
            title: '查看招聘信息',
            icon: 'align-left',
            invisible: true,
          },
        },
      ],
    },
    // ? 新闻管理
    {
      path: 'news',
      name: '新闻管理',
      meta: {
        title: 'newsList',
        icon: 'read',
      },
      component: BlankView,
      children: [
        // {
        //   path: 'admin',
        //   name: '新闻列表',
        //   meta: {
        //     icon: 'diff',
        //     authority: {
        //       role: 'admin'
        //     },
        //   },
        //   component: () => import('@/pages/web/news/adminNews/adminNews'),
        // },
        {
          path: 'list',
          name: '新闻列表',
          meta: {
            icon: 'diff',
            authority: {
              role: 'user',
            },
          },
          component: () => import('@/pages/web/news/list/newsList'),
        },
        {
          path: 'newsdetail/:id',
          name: '新闻详情',
          component: () => import('@/pages/web/news/detail/newsDetail'),
          meta: {
            title: '查看新闻',
            icon: 'align-left',
            invisible: true,
          },
        },
      ],
    },
    // ? 关于我们
    {
      path: 'aboutUs',
      name: '关于我们',
      meta: {
        icon: 'team',
      },
      component: PageView,
      children: [
        {
          path: 'list',
          name: '列表',
          meta: {
            icon: 'snippets',
            authority: {
              role: 'user',
            },
          },
          component: () => import('@/pages/web/aboutUs/list/aboutUsList'),
        },
        // {
        //   path: 'admin',
        //   name: '管理',
        //   meta: {
        //     icon: 'unordered-list',
        //     authority: {
        //       role: "admin"
        //     },
        //   },
        //   component: () => import('@/pages/web/aboutUs/adminAboutUs/adminAboutUs')
        // },
      ],
    },
  ],
};
